import { http } from "@/utils/http";

export const GetVenues = (
	data: Eps.JockeyClubService.GetVenues_Params = {}
): Promise<Eps.JockeyClubService.GetVenues> => {
	return http.post(`/JockeyClubService/GetVenues`, Object.values(data));
};

export const GetVideos = (
	data: Eps.JockeyClubService.GetVideos_Params = {}
): Promise<Eps.JockeyClubService.GetVideos> => {
	return http.post(`/JockeyClubService/GetVideos`, Object.values(data));
};

export const GetVideoUrl = (
	data: Eps.JockeyClubService.GetVideoUrl_Params = {}
): Promise<Eps.JockeyClubService.GetVideoUrl> => {
	return http.post(`/JockeyClubService/GetVideoUrl`, Object.values(data));
};

export const GetHorseTrainerGameInfos = (
	data: Eps.JockeyClubService.GetHorseTrainerGameInfos_Params = {}
): Promise<Eps.JockeyClubService.GetHorseTrainerGameInfos> => {
	return http.post(`/JockeyClubService/GetHorseTrainerGameInfos`, Object.values(data));
};

export const GetHorseTrainerStatistics = (
	data: Eps.JockeyClubService.GetHorseTrainerStatistics_Params = {}
): Promise<Eps.JockeyClubService.GetHorseTrainerStatistics> => {
	return http.post(`/JockeyClubService/GetHorseTrainerStatistics`, Object.values(data));
};

export const GetTrainers = (
	data: Eps.JockeyClubService.GetTrainers_Params = {}
): Promise<Eps.JockeyClubService.GetTrainers> => {
	return http.post(`/JockeyClubService/GetTrainers`, Object.values(data));
};

export const GetAllEventCodes = (
	data: Eps.JockeyClubService.GetAllEventCodes_Params = {}
): Promise<Eps.JockeyClubService.GetAllEventCodes> => {
	return http.post(`/JockeyClubService/GetAllEventCodes`, Object.values(data));
};

export const GetBetRules = (
	data: Eps.JockeyClubService.GetBetRules_Params = {}
): Promise<Eps.JockeyClubService.GetBetRules> => {
	return http.post(`/JockeyClubService/GetBetRules`, Object.values(data));
};

export const GetRaceInfos = (
	data: Eps.JockeyClubService.GetRaceInfos_Params = {}
): Promise<Eps.JockeyClubService.GetRaceInfos> => {
	return http.post(`/JockeyClubService/GetRaceInfos`, Object.values(data));
};

export const GetRaceResults = (
	data: Eps.JockeyClubService.GetRaceResults_Params = {}
): Promise<Eps.JockeyClubService.GetRaceResults> => {
	return http.post(`/JockeyClubService/GetRaceResults`, Object.values(data));
};

export const GetRaces = (
	data: Eps.JockeyClubService.GetRaces_Params = {}
): Promise<Eps.JockeyClubService.GetRaces> => {
	return http.post(`/JockeyClubService/GetRaces`, Object.values(data));
};

export const GetHorses = (
	data: Eps.JockeyClubService.GetHorses_Params = {}
): Promise<Eps.JockeyClubService.GetHorses> => {
	return http.post(`/JockeyClubService/GetHorses`, Object.values(data));
};

export const GetIndexHorseTrainers = (
	data: Eps.JockeyClubService.GetIndexHorseTrainers_Params = {}
): Promise<Eps.JockeyClubService.GetIndexHorseTrainers> => {
	return http.post(`/JockeyClubService/GetIndexHorseTrainers`, Object.values(data));
};

export const GetIndexJockeies = (
	data: Eps.JockeyClubService.GetIndexJockeies_Params = {}
): Promise<Eps.JockeyClubService.GetIndexJockeies> => {
	return http.post(`/JockeyClubService/GetIndexJockeies`, Object.values(data));
};

export const GetHorseGameInfos = (
	data: Eps.JockeyClubService.GetHorseGameInfos_Params = {}
): Promise<Eps.JockeyClubService.GetHorseGameInfos> => {
	return http.post(`/JockeyClubService/GetHorseGameInfos`, Object.values(data));
};

export const GetHorseList = (
	data: Eps.JockeyClubService.GetHorseList_Params = {}
): Promise<Eps.JockeyClubService.GetHorseList> => {
	return http.post(`/JockeyClubService/GetHorseList`, Object.values(data));
};

export const GetHorseStatistics = (
	data: Eps.JockeyClubService.GetHorseStatistics_Params = {}
): Promise<Eps.JockeyClubService.GetHorseStatistics> => {
	return http.post(`/JockeyClubService/GetHorseStatistics`, Object.values(data));
};

export const GetJockeies = (
	data: Eps.JockeyClubService.GetJockeies_Params = {}
): Promise<Eps.JockeyClubService.GetJockeies> => {
	return http.post(`/JockeyClubService/GetJockeies`, Object.values(data));
};

export const GetJockeyGameInfos = (
	data: Eps.JockeyClubService.GetJockeyGameInfos_Params = {}
): Promise<Eps.JockeyClubService.GetJockeyGameInfos> => {
	return http.post(`/JockeyClubService/GetJockeyGameInfos`, Object.values(data));
};

export const GetJockeyStatistics = (
	data: Eps.JockeyClubService.GetJockeyStatistics_Params = {}
): Promise<Eps.JockeyClubService.GetJockeyStatistics> => {
	return http.post(`/JockeyClubService/GetJockeyStatistics`, Object.values(data));
};
